#ifndef COMDEBUGWIDGET_H
#define COMDEBUGWIDGET_H

#include <QWidget>
#include "serial.h"

namespace Ui {
class ComDebugWidget;
}

class ComDebugWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ComDebugWidget(QString title,QWidget *parent = nullptr);
    ~ComDebugWidget();
    void setSerial(Serial *serial);
public slots:
    void showRecive(QByteArray info);
    void showSendRes(QString data,bool isOk);

signals:
    void sendData(QString data);

private slots:
    void on_pushButton_send_clicked();

    void on_pushButton_cleanTx_clicked();

    void on_pushButton_cleanRx_clicked();

private:
    Ui::ComDebugWidget *ui;
};

#endif // COMDEBUGWIDGET_H
